package com.hand.cloud.service.impl;

import com.hand.cloud.dao.UserDao;
import com.hand.cloud.entity.User;
import com.hand.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;


    @Override
    public List<User> queryAll() {
        return userDao.queryAll();
    }

    @Override
    public User queryOne(Integer id) {
        return userDao.queryOne(id);
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }


}
